'''
@Owner dYrolign and DERFDY 2025.
@Author dYrolign.
@Contibutor iKeinsan, Werstog, Leoitsenn.
@Date 2025/10/15.
'''
import random

guess_list = ["石头", "剪刀", "布"]
win_combination = [["布", "石头"], ["石头", "剪刀"], ["剪刀", "布"]]

while True:
    random.seed(2)
    player = input()
    if(player not in guess_list): continue
    bot = random.randint(0,2)

    if(player == guess_list[bot]):
        print("平手，再玩一次！")
    elif ([player,guess_list[bot]] in win_combination):
        print("人获胜！")  #你过关！
        break
    else:
        print("电脑获胜，再玩，人获胜才能退出！")